/*
 * @Description: 
 * @Version: 1.0
 * @Author: truman
 * @Date: 2024-01-12 23:17:45
 * @LastEditors: truman
 * @LastEditTime: 2024-03-10 16:03:21
 */
/**
 * 严肃声明：
 * 开源版本请务必保留此注释头信息，若删除我方将保留所有法律责任追究！
 * 本系统已申请软件著作权，受国家版权局知识产权以及国家计算机软件著作权保护！
 * 可正常分享和学习源码，不得用于违法犯罪活动，违者必究！
 * Copyright (c) 2020 陈尼克 all rights reserved.
 * 版权所有，侵权必究！
 */

import axios from '../utils/axios'

export function getUserInfo() {
  return axios.get('/recruit/user/information');
}
export function bindUser(tel, params) {
  return axios.get(`/recruit/user/weChat/wx/tel/${tel}`, { params });
}

export function EditUserInfo(params) {
  return axios.put('/user/info', params);
}
export function EditPwd(old_password, new_password,  confirm_password) {
  return axios.put('/recruit/user/change_password', { new_password, confirm_password, old_password });
}

export function login(params) {
  return axios.post('/recruit/user/login', params);
}

export function forgotPwd(data) {
  return axios.post('/recruit/user/forgot_password', {data});
}

export function logout() {
  return axios.post('/user/logout')
}

export function register(params) {
  return axios.post('/recruit/user/register', params);
}

